package com.three.vip.service.impl;

import com.three.core.vo.R;
import com.three.vip.mapper.StoreBindMapper;
import com.three.vip.service.StoreBindService;
import com.three.vip.vo.StoreBindVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


@Service
public class StoreBindServiceImpl implements StoreBindService {
    @Autowired
    private StoreBindMapper storeBindMapper;
    @Override
    public R<List<StoreBindVo>> selectStoreBind(Integer userId) {
        List<StoreBindVo> list =storeBindMapper.selectAllBalenceAndCredits(userId);
        return new R<>(200,"查询成功",list);
    }
}
